package com.biboheart.breport.engine.convert;

import com.biboheart.breport.engine.BrConvertor;
import com.biboheart.breport.engine.BrConvertorManager;

import java.util.HashMap;
import java.util.Map;

public class BrConvertorManagerImpl implements BrConvertorManager {
    private final Map<String, BrConvertor> convertorHash = new HashMap<>();

    @Override
    public void register(String sn, BrConvertor convert) {
        convertorHash.put(sn, convert);
    }

    @Override
    public BrConvertor get(String sn) {
        return convertorHash.get(sn);
    }
}
